package com.jr.controller;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/charset")
public class CharSetController extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("请求经过过滤器,最终到达了CharSetController！！！");
        String pname=req.getParameter("pname");
        pname="李方风李方雷李方火李方山";
        resp.getWriter().println("你好"+pname);
    }
}
